<?php
$dbhost = 'localhost';  // mysql服务器主机地址
$dbuser = 'ether_gq';            // mysql用户名
$dbpass = '8MN6ZYmayNbRwxm7';          // mysql用户名密码
$dbname = 'ether_gq';
$conn = mysqli_connect($dbhost, $dbuser, $dbpass,$dbname);

$sign_up = 'insert into user (username,password,email) values (\''.$_GET["username"].'\',\''.$_GET["password"].'\',\''.$_GET["email"].'\')';
$sign_up .= 'INSERT INTO chat_data (username)
VALUES (\''.$_GET["username"].'\');';
if (mysqli_query($conn,$sign_up))
{
	echo 1;
}
else
{
	echo 0;
}

mysqli_close($conn);

?>